package lambdasinaction.chap3.ex;

        import java.io.BufferedReader;
        import java.io.FileReader;
        import java.io.IOException;

/**
 * Created by gx on 2017/4/12.
 */
public class MyTest {

    public static String ProcessFile(BufferedReaderProcessor bufferedReaderProcessor) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("data.txt"));
        return bufferedReaderProcessor.process(br);
    }

    public static void main(String[] args) {
        try {
            String a= ProcessFile((br)->br.readLine()+br.readLine()+br.readLine());
            System.out.println(a);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
